package com.jfsnpm.action;

import com.jfinal.plugin.activerecord.Db;
import com.jfsnpm.common.AppSql;


public class PmUser {
	/**
	 * 获取用户名称
	 * @param userid
	 * @return
	 */
	public static String getUserNameById(String userid){
		return Db.findById("pm_user", userid).getStr("name");
	}
	/**
	 * 获取用户的当前部门
	 * @param userid
	 * @return
	 */
	public static String getUserDeptById(String userid){
		return Db.findFirst(AppSql.getsql("pm.getUserDeptById"), userid).getStr("dept");
	}
	
	
	
	
}
